home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / video / svga.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.2 KB  |  54 lines

  1. /*
  2.  * Copyright (C) 1990-1992 by Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. #ifndef    SVGA_H
  15. #define    SVGA_H
  16.  
  17. /*
  18.  * svga.h    - private SVGA data
  19.  */
  20.  
  21. struct svga_mode_info
  22. {
  23.     int            width;
  24.     int            height;
  25.     int            depth;
  26.     int            bios_mode;
  27.     int            attributes;
  28.  
  29.     unsigned        scanline_length;
  30.     unsigned char    *window_address;
  31.     unsigned        window_size;
  32.     unsigned        window_granularity;
  33.     void        (*window_control)();
  34.  
  35.     unsigned char    red_bits;
  36.     unsigned char    green_bits;
  37.     unsigned char    blue_bits;
  38.     unsigned char    red_shift;
  39.     unsigned char    green_shift;
  40.     unsigned char    blue_shift;
  41. };
  42.  
  43. #define    SVGA_TEXT_MODE        1
  44. #define    SVGA_GRAPHICS_MODE    2
  45. #define SVGA_MODE_SUPPORTED    0x80
  46.  
  47. extern struct svga_mode_info    *SVGAModeTable;
  48. extern struct svga_mode_info    *SVGAModeInfo;
  49. extern int            SVGAMaxModeIndex;
  50.  
  51. extern unsigned char    *VideoBiosAddress;
  52.  
  53. #endif    /* SVGA_H */
  54.